<? if (!defined("BASEPATH")) exit("No direct script access allowed");

if(isset($getArticleList)) {
	foreach($getArticleList as $ii => $d) {

		$entList = preg_split("/,/", $d["entList"]);
		$entUrlList = preg_split("/,/", $d["entUrlList"]);
		$tags = "";
		foreach($entList as $jj => $ent) {
			if($ent) {
				$tags .= (($tags)?(", "):("")).anchor(trim($entUrlList[$jj]), trim($ent), ((isset($activeTag) and $activeTag == trim($entUrlList[$jj]))?("class=\"b\""):("")));
			}
		}

		if($ii) {
			echo	"<hr/>";
		}
		echo	"<h1>".$d["artName"]."</h1>";
		echo	"<div>".$d["artLead"]."</div>";
		if($tags) {
			echo	"<div><b>".$this->lang->line("TAGS").":</b> ".$tags."</div>";
		}
		echo	"<p class=\"fr\">".anchor(site_url().$d["artUrlName"], $this->lang->line("MORE"))."</p><br/>";
	}
}